package edu.rutgers.rucampusinfo.directory;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;

import javax.jdo.PersistenceManager;
import javax.jdo.Query;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import edu.rutgers.rucampusinfo.PMF;
import edu.rutgers.rucampusinfo.tables.Role;



public class EmpDirDataIn extends HttpServlet {
    /**
	 * 
	 */
	private static final long serialVersionUID = -172420556006592977L;
	@SuppressWarnings("unchecked")
	public void doGet(HttpServletRequest req, HttpServletResponse resp)
                throws IOException {
		PersistenceManager pm = PMF.get().getPersistenceManager();
		Role role1 = new Role("AE", "Advanced Editing");
		Role role2 = new Role("BE", "Basic Editing");
		Role role3 = new Role("ITA", " Information Technology Analyst");
		Role role4 = new Role("KG", " Knight Guides");
		Role role5 = new Role("WW", "Weather Watcher");
		pm.makePersistent(role1);
		pm.makePersistent(role2);
		pm.makePersistent(role3);
		pm.makePersistent(role4);
		pm.makePersistent(role5);
		//Query query = pm.newQuery("SELECT FROM "+EmpDir.class.getName());
		pm.close();
	}
}